package com.semanticbits.codejam.model

import ariba.appcore.*
import ariba.ui.meta.annotations.*
import ariba.ui.meta.annotations.Property.*
import ariba.ui.meta.persistence.*
import ariba.appcore.annotations.*
import org.compass.annotations.*

import javax.persistence.*
import java.util.*
import ariba.ui.meta.annotations.Trait.Required
/**
 * Created by IntelliJ IDEA.
 * User: carlos.perez
 * Date: 1/14/11
 * Time: 7:20 AM
 * To change this template use File | Settings | File Templates.
 */
@Entity @Searchable(root=false)
@DefaultAccess @AnonymousAccess([Permission.ClassOperation.view])
class JudgeNotes {

    @Id @GeneratedValue
    private Long id


    int points = 0

    @Required @SearchableProperty @Trait.RichText
    String judgingNotes

    boolean reject  = false

    @SearchableProperty @Trait.RichText
    String rejectionReason

}
